# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=tpm
pkgver=1.3.3
pkgrel=4
pkgdesc="A tiny password manager"
url="https://github.com/nmeum/$pkgname"
arch="noarch"
license="GPL-3.0-or-later"
depends="gpg"
makedepends="perl"
subpackages="
	$pkgname-doc
	$pkgname-zsh-completion:zshcomp:noarch
	$pkgname-bash-completion:bashcomp:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/nmeum/tpm/archive/$pkgver.tar.gz"

build() {
	make
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" install

	install -Dm644 "$builddir"/contrib/bash_completion \
		"$pkgdir"/usr/share/bash-completion/completions/$pkgname
	install -Dm644 "$builddir"/contrib/zsh_completion \
		"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}

sha512sums="113ba21300d2a5fdfb1c058c3f496b004195b68576a832c5ad89b8baecd2d18660ba108e2e7a5ae68148dd60bdaacaee5f5024905b8fc07184a577e0837ae204  tpm-1.3.3.tar.gz"
